home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
gfx
/
pbm
/
texts.lzh
/
amiga.readme
next >
Wrap
Text File
|
1992-04-24
|
12KB
|
307 lines
PBMPlus version 10dec91
Amiga release
LEGAL STUFF
-----------
The original README-file (see texts.lzh) and the manuals are rather free on
what is allowed with the PBMPlus sources. However, this does NOT apply to
this Amiga version of PBMPlus. Well, I would like to simply say "do with it
what you want", but there is a great danger that some `PD Distributor' then
sells this package for a lot of $$$. If you don't like these restrictions,
you are free to make your own port of PBMPlus, the sources are available on
a lot of FTP sites.
The Amiga version of PBMPlus may be distributed freely, with the following
conditions:
* The ENTIRE package must be distributed UNCHANGED. Compression with
common archivers like zoo or lharc is allowed. Remember, this
condition does apply to ALL forms of distribution, be it via floppy
disks, BBS'es, electronic networks (FTP sites), or other means.
* Distribution may only be on a NON-PROFIT basis. The distributor
may only charge for media and postage costs, and a MINIMAL copying
fee. For disk-based distributions, the total fee/disk (including
media cost, but not including postage) may never exceed DM 5.00 in
Germany or US$ 5.00 (or an equivalent amount in your local currency)
outside Germany. For other MAGNETIC media (like streamer tapes or
SyQuest's) the copying fee (not including media costs or postage)
may never exceed DM 2.50 or US$ 2.50, respectively. Distribution on
NON-MAGNETIC media (like CD's) is not allowed without my written
permission.
* Distribution via electronic networks or BBS systems is allowed if
those systems make no copyright or ownership claims to uploaded
software and do not charge for downloading other than standard
online costs.
* Inclusion in any commercial software package is not allowed without
my written permission.
* Likewise, distribution on any magazine disk is not allowed without
my written permission.
As always, Fred Fish has explicit permission to include this package in his
wonderful "Fish Disks".
You don't have to pay me anything to use this software, but if you think I've
done a good job in porting this stuff and want to give me some reward, send
me a nice picture-postcard of your home town/country. See the BUG REPORTS
section for my address.
Standard Disclaimer: This software is provided "as is", without any warranty,
either expressed or implied...blablabla. In short: You get this stuff for
free, so if it nukes your computer, melts your harddisk or kills your cat
that's your problem, not mine.
WHAT IS PBMPLUS?
----------------
PBMPlus is a toolkit to convert and manipulate graphic images. It was
written and is maintained by Jef Poskanzer (jef@well.sf.ca.us), and lots of
people have provided additional programs, bugfixes and enhancements. Read
the manuals for information on who wrote which program.
PBMPlus is a set of shell programs that act as filters, meaning they read
from a file or stdin and write to stdout. There is NO graphical interface
(yet). PBMPlus doesn't convert directly from and to standard graphic formats
like GIF or IFF-ILBM, it uses three intermediate formats:
PBM = `portable bitmap' (1bit black&white)
PGM = `portable gray map' (8bit greyscales)
PPM = `portable pix map' (24bit color)
The formats are upward compatible, PGM programs can read both PBM and PGM and
write PGM, PPM programs can read all three and write PPM. There are also PNM
programs (PNM = `portable anymap'), these work on all three formats and write
the same format as they read. (There is no PNM format!)
The great advantage is that for a conversion between N formats only 2*N
converters are needed, instead of (N-1)*N. For example, to convert between
GIF, TGA, PCX and IFF-ILBM you only need 8 programs:
giftoppm, ppmtogif, tgatoppm, ppmtotga, pcxtoppm, ppmtopcx, ilbmtoppm
and ppmtoilbm
instead of 12:
giftotga, giftopcx, giftoilbm, tgatogif, tgatopcx, tgatoilbm, pcxtogif,
pcxtotga, pcxtoilbm, ilbmtogif, ilbmtotga and ilbmtopcx
Another advantage is that if yet another graphic format appears, all that is
needed are the newtop?m and p?mtonew filters, and you are able to convert the
new format to and from any other (old) format.
The disadvantage is that two commands are needed to convert an image, i.e.:
giftoppm >mypic.ppm mypic.gif
ppmtoilbm >mypic.iff mypic.ppm
or on Unix-like shells: giftoppm mypic.gif | ppmtoilbm > mypic.iff
Another disadvantage is that the intermediate files get quite big, for example
a 1024x768 PPM picture needs 1024*768*3 bytes = 2.25MB.
PBMPlus also includes a lot of tools that manipulate the intermediate formats
in some way. For example, to convert a GIF of any size to a 320*200 IFF-ILBM
you could do this:
giftoppm >mypic.ppm mypic.gif
pnmscale >mypic.ppm2 -xysize 320 200 mypic.ppm
ppmtoilbm >mypic.iff mypic.ppm2
or giftoppm mypic.gif | pnmscale -xysize 320 200 | ppmtoilbm >mypic.iff
You want to turn ASCII text into an IFF-ILBM picture? No problem:
pbmtext < text.txt > text.pbm
ppmtoilbm text.pbm > text.iff
or pbmtext < text.txt | ppmtoilbm > text.iff
For more information on what formats PBMPlus can read and write and what
manipulations are possible, read `FORMATS' and `programs' in texts.lzh.
REQUIREMENTS & INSTALLATION
---------------------------
These programs run on any Amiga with Kickstart 1.3 or higher. However, they
are useless on a stock A500. (Hmm. Better say an A500 is useless for this
programs. ;-)) You should have a harddisk, lots of memory and a fast CPU.
3MB of RAM should be sufficient for almost all pictures (up to 1024x768).
Of course, you need some place to write the intermediate files to (a HD).
To save space, PBMPlus is distributed in lharc-archives. Since the whole
package uses over 3MB of disk space and nobody needs all the programs, you
should first decide what you need. Unpack the texts-archive and read the
`programs' file and the `README' file in the extra-archive. Most likely, you
want ppmtoilbm, somethingtoppm (in ppmbin?.lzh) and the manipulation tools
(in pnmbin.lzh). Extract them from the archives with lharc or a compatible
tool (lz or lha) with a command like this:
lharc -m -a -x <archive.lzh> <the-program-you-want>
Make sure your extraction program preserves the p-flag (`pure'). For most
lharc-clones, the -a option does this.
The mathtrans and mathieeedoub*-libraries must be in LIBS:. Future versions
will also require the new 2.0 mathieeesing*-libraries. (Yet another reason
to upgrade to 2.0 ;-)) The libraries are opened with DICE's auto-open
routines, so if they are missing, the programs simply abort WITHOUT printing
an error message. I don't consider this a flaw, because PBMPlus is rather
useless without a harddisk, and HD-users usually have all important libraries
in LIBS: anyway.
CHANGES FROM THE LAST RELEASE (05oct91)
---------------------------------------
* obviously, the 30oct91 and 10dec91 patches are applied :-)
* now supports X11 color names file (see SPECIAL FEATURES)
* pnmtotiff and tifftopnm are now included
* compiled with dynamic stacks and register-args
* array allocation routine pm_allocarray() no longer requires continuous RAM
SPECIAL FEATURES
----------------
WARNING: These features exist ONLY in the Amiga version of PBMPlus. They may
change or not exist in future versions.
ppmtoilbm has a new option: -hamforce. This causes ppmtoilbm to ALWAYS write
a HAM file, even if the PPM-file only has 2 colors.
The path to the X11 color names file is not compiled into the programs, but
taken from the environment variable `RBGDEF'. If you want to use a names
file (used by pgmtoppm, ppmmake, ppmtouil, ppmtoxpm and xpmtoppm), set the
variable to the full path and name of the names file, i.e.
setenv RGBDEF "s:x11/rgb.txt"
An example color names file is included in the extra-archive under
extra/other/newcolors.rgb
All programs, except giftoppm, spctoppm, sputoppm, tgatoppm, pnmtotiff and
tifftopnm are `pure' and can be made resident. Don't worry about stacksize,
I took all large arrays off the stack into global variables and compiled with
DICE's dynamic stacks.
MISC NOTES
----------
All programs have two hidden options:
-quiet prevents all output from the program.
-version displays version information, for bug reports.
The option `-?' causes most programs to print a short usage message.
For expert users: The programs have been compiled with PBMPLUS_RAWBITS set,
so they are able to read both raw and ASCII files, but write only raw files.
If you want ASCII files, pipe the output through pnmnoraw.
KNOWN BUGS & MISSING THINGS
---------------------------
ppmpat is not included in the Amiga release.
I didn't bother to convert the scripts to AmigaDOS-scripts (it's nearly
impossible anyway). If you want to run them, find a Bourne-shell or Csh
clone.
ppmquant uses huge amounts of RAM in lots of small pieces (depends on the
number of colors, more than 6MB for 256 colors). This isn't a problem if
you have enough memory, but otherwise ppmquant will slowly eat away every
available byte, and then the OS will run into deep deep trouble and most
likely produce some nice fireworks.
Most of the programs are untested. However, since they are known to run
under Unix and the DICE compiler produces good code, I expect no problems.
BUG REPORTS & SUPPORT
---------------------
Please send bug reports to the address below. Sorry, I cannot answer to bug
reports and other requests other than via e-mail (or for normal mail, you
have to include a self-addressed & stamped envelope). Hey, this is freeware,
did you expect a phone-hotline?
Please describe exactly what you were doing, what went wrong (Guru number?),
what OS version and shell you are using, and your machine type and memory
configuration, the output from running any program with the -version flag,
and if possible include the picture (uuencoded) that caused the problem.
Also, make sure that it's really the PBMPlus-program thats causing the
problems, not some background-utility playing corewar.
My address:
Ingo Wilken
Bloherfelder Str. 72
2900 Oldenburg
W-Germany
E-Mail: Internet: Ingo.Wilken@arbi.informatik.uni-oldenburg.de
UUCP : wilken@uniol.UUCP (...!uunet!unido!uniol!wilken)
Zerberus: wilken@uniol.ZER
IRC-Nick: Nobody (usually on `#amiga')
HOW TO GET THE SOURCE AND UPDATES
---------------------------------
The original source is available via anonymous ftp from:
ftp.ee.lbl.gov : pbmplus*.tar.Z
wuarchive.wustl.edu : graphics/graphics/packages/pbmplus/pbmplus*.tar.Z
export.lcs.mit.edu : contrib/pbmplus*.tar.Z
The newest Amiga version is always available via anonymous ftp from:
ftp.informatik.uni-oldenburg.de [134.106.1.9]: /pub/amiga/pbmplus
I usually post an announcement to alt.graphics.pixutils and/or
comp.sys.amiga.graphics when a new version or an update is available.
THE FUTURE
----------
Some thoughts & rumors. Ideas and comments are welcome, but don't even think
of asking "When will it be available?"...
* move standard functions into a shared library (pbmplus.library). This
library WILL require Kick 2.0! Use mathieeesing*-libraries for floating
point math instead of mathffp, it's faster on FPUs.
* global -noraw or -plain option? (only if PBMPLUS_RAWBITS defined)
* make ALL programs respond with a usage message to a -? option
* jpeg <-> ppm filters
* Intuition Frontend: Markus Illenseer (markus@techfak.uni-bielefeld.de,
`ill' on IRC) wants to write one. Ideas are welcome. (Kick 2.0 only!)
THANKS TO
---------
Jef Poskanzer and all other contributors to PBMPlus, of course!
Matt Dillon for his fantastic DICE-compiler.
Markus Illenseer & Stefan Becker (my guinea pigs's, oops, beta-testers :-))
That's it. Have fun.
Ingo
--
Ingo Wilken, CS Student, Univ.of Oldenburg, FRG | You mean I really did all of
wilken@uniol.uucp (..!uunet!unido!uniol!wilken) | dat stuff? Now dat explains
Ingo.Wilken@arbi.informatik.uni-oldenburg.de | why my head hurts an' why I
wilken@uniol.zer IRC:Nobody OL:ingo@faramir | feel so bad! -Snarf